<% remote_form_for @historico_interno,:complete =>"$.colorbox.close()", :condition => '$(this).valid()', :html => {:class => "tabular"},  :builder => UniformBuilder do |f| %>
  <%= f.error_messages %>
  <div class="box">
    <%= f.hidden_field :usuario_id %>
    <%= f.collection_select :tipo_contrato_id, TipoContrato.all, :id,:nombre %>
    <%= f.collection_select :cargo_id, Cargo.all, :id,:nombre %>
    <%= f.collection_select :categoria_id, Categoria.all, :id, :nombre, :label => "Categor&iacute;a" %>
    <%= f.collection_select :sucursal_id, Sucursal.all,:id, :nombre %>
    <%= f.text_field :salario,:class => "money number required",:size => 12%>
    <%= f.text_field :beneficio,:class => "money number",:size => 12 %>
    <%= f.text_field :viatico,:class => "money number", :label => "Vi&aacute;tico",:size => 12 %>
    <%= f.text_field :desde,:class=>'dp required',:size => 10  %>
    <%= f.text_field :hasta,:class=>'dp',:size => 10%>
    <%= f.select :justa_causa, sino_options_for_select, :prompt=>"Selecione una opci&oacute;n" %>
    <%= f.collection_select :motivo_salida_id, MotivoSalida.all, :id,:nombre, :prompt=>"Selecione una opci&oacute;n" %>
    <%= f.text_area :comentario, :rows => 5 %>
    <%=  %>
  </div>
  <%= f.submit "Guardar" %>
<% end %>
<%=format_money_fields(:mDec=>0,:aSep=>'.',:aDec=>',')%>
<%=format_date_fields %>
<%= validate_forms %>